#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
int main5()
{
	int a, b, c, d;
	scanf("%d%d%d", &a, &b, &c);
	if (b > a)
	{
		d = a;
		a = b;
		b = d;
	}if (c > a)
	{
		d = a;
		a = c;
		c = d;
	}
	if (b >= c)
		printf("%d %d %d", a, b, c);
	else
		printf("%d %d %d", a, c, b);
	return 0;
}